<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.news.bean.NewsType;"%>
<%
            String path = request.getContextPath();
            String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <base href="<%=basePath%>">

        <title>My JSP 'MyJsp101.jsp' starting page</title>

        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="0">
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="This is my page">
        <!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

    </head>

    <body>
    <LINK href="images/admin_css.css" type=text/css rel=stylesheet>

          <table width="98%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#F2F9FD">
        <tr bgcolor="#f0f0f0">
            <td width="700" height="25" bgcolor="#D2E8F6">&nbsp;&nbsp;修改信息类别</td>
        </tr>
        <tr align="center" bgcolor="#FFFFFF">
            <td height="35" align="left" valign="top">
                <form name="form1" method="post" action="newstype?cmd=edit" onSubmit="return Validator.Validate(this,2)">
                    <table width="300"  border="0" cellpadding="0" cellspacing="0">
                        <%
            NewsType nt = (NewsType) request.getAttribute("newsType");

                        %>
                        <tr>
                            <td align="center" scope="col">&nbsp;</td>
                            <td scope="col"><input name="id" type="hidden" id="id" value="<%=nt.getId()%>"></td>
                        </tr>
                        <tr>
                            <td width="67" height="25" align="center" scope="col">名称：</td>
                            <td width="233" height="25" scope="col"><input name="name" type="text" id="sort_name" value="<%=nt.getName()%>" dataType="Require"  msg="请填写类别名称！"></td>
                        </tr>
                        <tr>
                            <td height="25" align="center" scope="row">顺序：</td>
                            <td height="25"><input name="sort" type="text" id="sx"  value="<%=nt.getSort()%>" dataType="Number"  msg="请填写类别排列顺序[必须为数字]！"></td>
                        </tr>
                        <tr>
                            <td height="25" align="center" scope="row">&nbsp;</td>
                            <td height="25"><input name="Submit" type="submit" class="button" value=" 修 改 ">
                                <input name="Submit" type="reset" class="button" value=" 重 置 ">
                                <input name="Submit" type="button" class="button" onclick="history.go(-1);" value=" 返 回 "></td>
                        </tr>
                        <tr>
                            <th height="25" align="center" scope="row">&nbsp;</th>
                            <td height="30"><a href="newstype?cmd=delete&id=<%=nt.getId()%>" onclick="return confirm('您确定要删除吗？');">删除此类别？</a></td>
                        </tr>
                        <% %>
                    </table>
                </form></td>
        </tr>
    </table><td></td>
</tr>
</table>
</body>
</html>
